package com.batchbrake.main;	

import java.awt.Toolkit;
import java.io.File;
import java.io.IOException;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.batchbrake.queue.QueueBuilder;

public class BatchBrake {
	public static EFile outputFolder = new EFile("/home/bamboo/Videos/");
	
	// TODO Triage de la liste pour garder les fichiers en cours d'encodage en haut (voir meme disable done file)
	// TODO Set PRESET and OUTPUT FOLDER
	// TODO 
	
	
	// TODO Command informatio pane
	
//	public static String getHandBrakeCLIPath(File pref) {
//		Dom
//	}
	
	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, IOException {
		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

		BatchBrakeProc proc = new BatchBrakeProc();
		QueueBuilder builder = new QueueBuilder();
		BatchBrakeFrame frame = new BatchBrakeFrame(builder, proc);
		frame.setIconImage(Toolkit.getDefaultToolkit().getImage("images/BatchBrake-128x128.png"));
		frame.setVisible(true);
		builder.addObserver(frame);
		
//		builder.addToQueue(new EFile("/media/titan/"), new EFile("/home/bamboo"), "m4v");
//		new Thread(builder).start();
		
	}

}
